package com.cn.meet.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cn.meet.entity.Notice;
import com.cn.meet.mapper.NoticeMapper;
import com.cn.meet.service.NoticeService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice>
        implements NoticeService {

    // 根据用户id查询通知
    @Override
    public List<Notice> find(Long id) {
        LambdaQueryWrapper<Notice> noticeLambdaQueryWrapper = new LambdaQueryWrapper<>();
        noticeLambdaQueryWrapper.eq(Notice::getUserid, id);
        List<Notice> notices = new ArrayList<>();
        return notices;
    }
}
